<?php
Kd_Web::getPage()->addReferenceScript('ckeditor', Kd_Web::getVariables()->getPubUrl().'share/js/ckeditor/ckeditor.js');
Kd_Web::getPage()->addReferenceScript('ckfinder', Kd_Web::getVariables()->getPubUrl().'share/js/ckfinder/ckfinder.js');
Kd_Web::getPage()->startStartupScript();
?>
CKFinder.setupCKEditor(CKEDITOR.replace("<?php echo $this->getId() ?>", {skin:"v2"}), "<?php echo Kd_Web::getVariables()->getPubUrl() ?>share/js/ckfinder/");
<?php Kd_Web::getPage()->endStartupScript(); ?>
<textarea<?php echo $this->getAttributeHtml() ?>><?php echo $this->getValue() ?></textarea>